package com.jindy.module.oaTransApproval.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jindy.activiti.domain.ProcessEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jindy.common.annotation.Excel;
import com.jindy.common.core.domain.BaseEntity;

/**
 * 调岗审批对象 sy_oa_trans
 * 
 * @author jindy
 * @date 2023-06-13
 */
public class SyOaTrans extends ProcessEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 入职日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入职日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date entryTime;

    /** 原部门 */
    @Excel(name = "原部门")
    private String deptBefore;

    /** 原部门id */
    @Excel(name = "原部门id")
    private Long deptBeforeId;

    /** 原职位 */
    @Excel(name = "原职位")
    private String positionBefore;

    /** 原职位id */
    @Excel(name = "原职位id")
    private Long positionBeforeId;

    /** 转入部门 */
    @Excel(name = "转入部门")
    private String deptAfter;

    /** 转入部门id */
    @Excel(name = "转入部门id")
    private Long deptAfterId;

    /** 转入职位 */
    @Excel(name = "转入职位")
    private String positionAfter;

    /** 转入职位id */
    @Excel(name = "转入职位id")
    private Long positionAfterId;

    /** 生效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date goDate;

    /** 申请人id */
    @Excel(name = "申请人id")
    private String applyUserId;

    /** 申请人姓名 */
    @Excel(name = "申请人姓名")
    private String applyUserName;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 流程实例ID */
    @Excel(name = "流程实例ID")
    private String instanceId;

    /** 流程定义key */
    @Excel(name = "流程定义key")
    private String processKey;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 流水单号 */
    @Excel(name = "流水单号")
    private String serialNum;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private String businessStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEntryTime(Date entryTime) 
    {
        this.entryTime = entryTime;
    }

    public Date getEntryTime() 
    {
        return entryTime;
    }
    public void setDeptBefore(String deptBefore) 
    {
        this.deptBefore = deptBefore;
    }

    public String getDeptBefore() 
    {
        return deptBefore;
    }
    public void setDeptBeforeId(Long deptBeforeId) 
    {
        this.deptBeforeId = deptBeforeId;
    }

    public Long getDeptBeforeId() 
    {
        return deptBeforeId;
    }
    public void setPositionBefore(String positionBefore) 
    {
        this.positionBefore = positionBefore;
    }

    public String getPositionBefore() 
    {
        return positionBefore;
    }
    public void setPositionBeforeId(Long positionBeforeId) 
    {
        this.positionBeforeId = positionBeforeId;
    }

    public Long getPositionBeforeId() 
    {
        return positionBeforeId;
    }
    public void setDeptAfter(String deptAfter) 
    {
        this.deptAfter = deptAfter;
    }

    public String getDeptAfter() 
    {
        return deptAfter;
    }
    public void setDeptAfterId(Long deptAfterId) 
    {
        this.deptAfterId = deptAfterId;
    }

    public Long getDeptAfterId() 
    {
        return deptAfterId;
    }
    public void setPositionAfter(String positionAfter) 
    {
        this.positionAfter = positionAfter;
    }

    public String getPositionAfter() 
    {
        return positionAfter;
    }
    public void setPositionAfterId(Long positionAfterId) 
    {
        this.positionAfterId = positionAfterId;
    }

    public Long getPositionAfterId() 
    {
        return positionAfterId;
    }
    public void setGoDate(Date goDate) 
    {
        this.goDate = goDate;
    }

    public Date getGoDate() 
    {
        return goDate;
    }
    public void setApplyUserId(String applyUserId) 
    {
        this.applyUserId = applyUserId;
    }

    public String getApplyUserId() 
    {
        return applyUserId;
    }
    public void setApplyUserName(String applyUserName) 
    {
        this.applyUserName = applyUserName;
    }

    public String getApplyUserName() 
    {
        return applyUserName;
    }
    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }
    public void setInstanceId(String instanceId) 
    {
        this.instanceId = instanceId;
    }

    public String getInstanceId() 
    {
        return instanceId;
    }
    public void setProcessKey(String processKey) 
    {
        this.processKey = processKey;
    }

    public String getProcessKey() 
    {
        return processKey;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setSerialNum(String serialNum) 
    {
        this.serialNum = serialNum;
    }

    public String getSerialNum() 
    {
        return serialNum;
    }
    public void setBusinessStatus(String businessStatus) 
    {
        this.businessStatus = businessStatus;
    }

    public String getBusinessStatus() 
    {
        return businessStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("entryTime", getEntryTime())
            .append("deptBefore", getDeptBefore())
            .append("deptBeforeId", getDeptBeforeId())
            .append("positionBefore", getPositionBefore())
            .append("positionBeforeId", getPositionBeforeId())
            .append("deptAfter", getDeptAfter())
            .append("deptAfterId", getDeptAfterId())
            .append("positionAfter", getPositionAfter())
            .append("positionAfterId", getPositionAfterId())
            .append("goDate", getGoDate())
            .append("remark", getRemark())
            .append("applyUserId", getApplyUserId())
            .append("applyUserName", getApplyUserName())
            .append("applyTime", getApplyTime())
            .append("instanceId", getInstanceId())
            .append("processKey", getProcessKey())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("serialNum", getSerialNum())
            .append("businessStatus", getBusinessStatus())
            .toString();
    }
}
